﻿<%@ Page Language="C#" AutoEventWireup="true" MasterPageFile="~/Master/MasterPage.master" CodeBehind="ComplainList.aspx.cs" Inherits="HZ.Supervise.Web.Secondphase.ComplainList" Title="意见反馈" %>

<%@ Register Src="~/Common/QueryControl.ascx" TagName="QueryControl" TagPrefix="uc1" %>
<%@ Register Src="../Common/ChartControl.ascx" TagName="ChartControl" TagPrefix="uc2" %>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="Server">
    <div id="tabnav">
        <ul>
            <li class="active"><a href="ComplainList.aspx">意见信息</a></li>
        </ul>
    </div>
    <div id="tabcontent">
        <table class="querylist">
            <tr>
                <td>
                    <table class="querylist">
                        <tr>
                            <td align="right">
                                意见反馈时间：
                            </td>
                            <td align="left">
                                <asp:TextBox ID="txtComPlainDate" MaxLength="25" onFocus="WdatePicker

({dateFmt:'yyyy-MM-dd '})" runat="server"></asp:TextBox>
                            </td>
                            <td align="right">
                                意见提出人:
                            </td>
                            <td>
                                <asp:TextBox ID="txtcomplainantName" MaxLength="25" runat="server"></asp:TextBox>
                            </td>
                            <%--<td align="right">
                                是否处理：
                            </td>
                            <td>
                                <asp:DropDownList ID="ddlIsDeal" runat="server">
                                    <asp:ListItem Text="---请选择---" Value=3></asp:ListItem>
                                    <asp:ListItem Text="已处理" Value=1></asp:ListItem>
                                    <asp:ListItem Text="未处理" Value=0></asp:ListItem>
                                </asp:DropDownList>
                            </td>--%>
                        </tr>
                    </table>
                </td>
                <td width="100px">
                    <asp:Button ID="btnQuery" runat="server" Text="查  询" CssClass="btn"
                        SkinID="search" ToolTip="点击查询符合条件的数据" onclick="btnQuery_Click" />
                </td>
            </tr>
        </table>
    </div>
    <asp:GridView ID="gvwComplain" CssClass="mainlist" runat="server" AutoGenerateColumns="False"
        EmptyDataText="暂无有效的反馈信息！">
        
        <Columns>
            <asp:TemplateField HeaderText="序号">
                <ItemTemplate>
                    <%# Container.DataItemIndex + 1 + AspNetPager1.PageSize * (AspNetPager1.CurrentPageIndex - 1)%></ItemTemplate>
                <HeaderStyle Width="30px" />
            </asp:TemplateField>
            <asp:BoundField HeaderText="意见提出人" DataField="complainantName" />
            <asp:BoundField HeaderText="标题" DataField="Title"/>
            <asp:BoundField HeaderText="意见反馈日期" DataField="ComplainTime" DataFormatString="{0:yyyy年MM月dd日}"/>
            <%--<asp:BoundField HeaderText="被投诉机构" DataField="ComplainTo"/>--%>
            <asp:TemplateField HeaderText="操作">
                <EditItemTemplate>
                    <asp:TextBox ID="TextBox1" runat="server"></asp:TextBox>
                </EditItemTemplate>
                <ItemTemplate>
                    <a href='Complain.aspx?id=<%#Eval("ComplainId") %>'>详情</a>
<%--                    <a href='ComplainReply.aspx?id=<%#Eval("ComplainId") %>'>回复</a>
--%>                </ItemTemplate>
            </asp:TemplateField>
        </Columns>
    </asp:GridView>
    <div class="page">
        <webdiyer:AspNetPager ID="AspNetPager1" runat="server" 
            onpagechanged="AspNetPager1_PageChanged">
        </webdiyer:AspNetPager>
    </div>
</asp:Content>

